package cn.ibdsr.human.service;


import cn.ibdsr.human.transfer.PasswordDTO;
import cn.ibdsr.human.transfer.UserLoginDTO;
import cn.ibdsr.human.transfer.UserLoginResponse;
import cn.ibdsr.human.transfer.*;
import cn.ibdsr.human.transfer.company.CompanyListDTO;
import cn.ibdsr.human.transfer.platform.CompanyQueryDTO;
import cn.ibdsr.human.transfer.platform.PlatformUserDetialDTO;
import cn.ibdsr.human.transfer.platform.ResetPasswordDTO;


/**
 * 用户服务接口
 * @author chenglx
 * @version V1.0
 * @description
 * @createDate 2020-02-28 14:30
 * <p>
 * Date Author Description
 * ------------------------------------------------------
 * 2020-02-28 chenglx init
 */

public interface UserService {


    UserLoginResponse loginOperate(UserLoginDTO userLoginDTO);

    void changePwd(PasswordDTO passwordDTO, Long userId);

    UserLoginResponse register(RegisterDTO registerDTO);

    void changPhone(ModifyPhoneDTO modifyPhoneDTO, Long userId);

    /**
     * 获取平台用户信息
     * @param userId
     * @return
     */
    PlatformUserDetialDTO getPlatformUser(Long userId);

    /**
     * 修改平台用户名称
     * @param userId
     * @param name
     * @return
     */
    Long updateUserName(Long userId, String name);

    /**
     * 重置用户密码
     * @param resetPasswordDTO
     * @param userId
     * @return
     */
    Long resetPwd(ResetPasswordDTO resetPasswordDTO, Long userId);


}
